const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  // transpileDependencies: true,
  publicPath: "/xjqxzh",
  lintOnSave: process.env.NODE_ENV === 'development',
  // publicPath: "/zhzs", //process.env.VUE_APP_SUB_PATH || 
  // 在npm run build 或 yarn build 时 ，生成文件的目录名称（要和baseUrl的生产环境路径一致）（默认dist）
  outputDir: 'xjqxzh',
  assetsDir: 'static',
  productionSourceMap: false,
  devServer: {
      host: '0.0.0.0',
      // port: port,
      open: false,
      proxy: {
         
          [process.env.VUE_APP_BASE_API + "/fxyjyb"]: {
              // target: "http://192.168.0.21:8888",//
              target: "http://192.168.0.13:8888",//
              // target: "http://10.185.21.14:8888",//服务器
              changeOrigin: true,
              pathRewrite: {
                  ['^' + process.env.VUE_APP_BASE_API + "/fxyjyb"]: ''
              },
          },
          [process.env.VUE_APP_BASE_API + "/zhjcright"]: {
            //  target: "http://192.168.0.21:8888",
            target: "http://192.168.0.13:8888",//
            // target: "http://10.185.21.14:8888",//服务器
            changeOrigin: true,
            pathRewrite: {
                ['^' + process.env.VUE_APP_BASE_API + "/zhjcright"]: ''
            },
        },
        
      },
      allowedHosts: 'all',
  },
})

